# -*- coding: utf-8 -*-

#一定要用 super(Student, self).__init__(name, gender) 去初始化父类
#self参数已在super()中传入，在__init__()中将隐式传递，不需要写出（也不能写）
class Person(object):
    def __init__(self, name, gender):
        self.name = name
        self.gender = gender

class Teacher(Person):

    def __init__(self, name, gender, course):
        super(Teacher, self).__init__(name,gender)
        self.course = course

t = Teacher('Alice', 'Female', 'English')
print t.name
print t.course

print isinstance(t, Person)
print isinstance(t, Teacher)
print isinstance(t, object)